


$(function () {

    /*页面滚动监听*/
    $(window).scroll(function (e) {
        let winPos = $(window).scrollTop();
        let $logo = $(".logo");
        let $head = $(".head");let $z_lunbo = $("#z_lunbo");
        let head_H = 350 - winPos;
        /*console.log(winPos);*/
        
        /* 导航栏变化 */
        winPos >= 280 ?
        $head.stop().animate({
            top:0,
            height:70,
            position: "fixed"
        },100)
        : $head.stop().css({
            top:0,
            height:head_H,
            position: "position"
        });

        /* logo变化 */
        winPos >= 150 ?
        $logo.stop().animate({
            width:140,
            height:70,
            left:-150,
            bottom:0
        },100)
        : $logo.stop().animate({
            width:400,
            height:200,
            left:-30,
            bottom:20
        },100);

    });

   

});